package xj.model.uml;

import static xj.model.uml.UMLModelConstants.ATTR_CONDITION;

public class ActivityFlow extends ConstrainedAssociationElement {

  public ActivityFlow() {
    this(null, null);
  }

  public ActivityFlow(ActivityNode left, ActivityNode right) {
    super(left, right);
  }

  public String getCondition() {
    return condition;
  }

  public void setCondition(String condition) {
    this.condition = condition;
    setAttribute(ATTR_CONDITION, condition);
  }

  @Override
  public Object clone() throws CloneNotSupportedException {
    ActivityFlow t = (ActivityFlow) super.clone();
    t.setCondition(condition);
    return t;
  }

  protected String condition;

}
